package com.quasar.hpatient.module.mine_information;

import com.quasar.hpatient.R;

import lib.quasar.base.frame.BasePresenter;
import lib.quasar.db.manager.DBManager;
import lib.quasar.db.table.User;

/**
 * description: 个人资料
 * created by kalu on 2018/4/10 15:27
 */
public class InformationPresenter implements BasePresenter {

    void setPatientData(InformationView view) {

        if (null == view) return;
        User patient = DBManager.getInstance().syncGetUserModel();
        if (null == patient) return;

        view.setTextRight(R.id.activity_mine_information_nikename, patient.getReal_name());
        view.setTextRight(R.id.activity_mine_information_sex, patient.getSex() + "");
        view.setTextRight(R.id.activity_mine_information_birthday, patient.getBirthday());
        view.setTextRight(R.id.activity_mine_information_age, patient.getAge() + "");
        view.setTextRight(R.id.activity_mine_information_phone, patient.getPhone());
        // view.setTextRight(R.id.activity_mine_information_name, patient.get());
        //   view.setTextRight(R.id.activity_mine_information_blood_type, patient.getBloodType());
        //   view.setTextRight(R.id.activity_mine_information_doctor, patient.getDoctor());
        //   view.setTextRight(R.id.activity_mine_information_receptor, patient.getReceptor());
        //   view.setTextRight(R.id.activity_mine_information_transplant_type, patient.getTransplantType());
        //   view.setTextRight(R.id.activity_mine_information_organ_source, patient.getOrganSource());
        //   view.setTextRight(R.id.activity_mine_information_surgery_time, patient.getSurgeryTime());
        //   view.setTextRight(R.id.activity_mine_information_surgery_hospital, patient.getSurgeryHospital());
        //  view.setTextRight(R.id.activity_mine_information_address, patient.getAddress());
        //  view.setTextRight(R.id.activity_mine_information_card, patient.getCard());
    }

    @Override
    public void recycler() {
    }
}
